package com.hxalex.simulationhandle.accessbilityService.command.wifi;

import com.hxalex.simulationhandle.accessbilityService.command.base.BaseCommand;
import com.hxalex.simulationhandle.accessbilityService.manger.WifiManger;
import com.hxalex.simulationhandle.accessbilityService.receiver.base.BaseReceiver;
import com.hxalex.simulationhandle.accessbilityService.receiver.wifi.ConnectWifiReceiver;

/**
 * Created by hx_Alex on 2018/5/26.
 */

public class ConnectWifiCommand extends BaseCommand {

    private ConnectWifiReceiver.onClickItemListener onClickItemListener;

    public void setOnClickItemListener(ConnectWifiReceiver.onClickItemListener onClickItemListener) {
        this.onClickItemListener = onClickItemListener;
        if(receiver instanceof ConnectWifiReceiver)
        {
            ((ConnectWifiReceiver)receiver).setOnClickItemListener(onClickItemListener);
        }
    }

    public ConnectWifiCommand(WifiManger wifiManger, BaseReceiver receiver) {
        super(wifiManger, receiver);
       
    }


 

}
